ig.module(
	'game.entities.base.pickObject'
)
.requires(
	'impact.entity',
	'impact.image',
        'game.entities.base.pickableType'
)
.defines(function()
{
    EntityPickObject = EntityPickableType.extend(
    {
        size: {x:24, y:24},
	collides: ig.Entity.COLLIDES.ACTIVE,
	
        init: function(x, y, settings)
        {
	    this.parent(x, y, settings);	    
            this.addAnim('Idle', 1, [0]);	    
        },
        
	update: function()
	{
	    this.parent();    
	},
	
        onPick: function()
        {
            this.parent();
            
            if (this.pickType == ig.global.typeToPick)
            {
                ig.global.numberOfPicks++;
            }
	    else
	    {
		ig.global.failed = true;
	    }
        }        
    });
});